package com.itkjb.leisurely.resource.sys.model.vo;

import com.itkjb.leisurely.core.base.BaseModel;
import com.itkjb.leisurely.core.interfaces.TreeInterfase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 组织结构
 * </p>
 *
 * @author itkjb.com
 * @since 2020-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysDepartmentVO-模型", description="组织结构树")
public class SysDepartmentVO extends BaseModel implements TreeInterfase<SysDepartmentVO> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 组织名字
     */
    @ApiModelProperty(value = "组织名字")
    private String depName;

    /**
     * 组织机构代码
     */
    @ApiModelProperty(value = "组织机构代码")
    private String depCode;

    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    private String parentId;

    /**
     * 排序，也可当级别用
     */
    @ApiModelProperty(value = "排序，也可当级别用")
    private Integer paixu;

    /**
     * 子集
     */
    private List<SysDepartmentVO> children = new ArrayList<>();


}
